using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace MimeCloud.AssetManagement.DigitalLibrary.Dialogs
{
    /// <summary>
    /// Interaction logic for AssetContentTypeList.xaml
    /// </summary>
    public partial class AssetContentTypeList : Window
    {
        public AssetContentTypeList()
        {
            InitializeComponent();
            
        }

        /// <summary>
        /// The dependency property that gets or sets the nsource of the image to render.
        /// </summary>
        public static DependencyProperty SourceProperty = DependencyProperty.Register(
            "Source", typeof(IEnumerable), typeof(AssetContentTypeList));
        /// <summary>
        /// Gets or sets the nsource of the image to render.
        /// </summary>
        public IEnumerable Source
        {
            get { return (IEnumerable)GetValue(SourceProperty); }
            set { SetValue(SourceProperty, value); }
        }

        private void btOK_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            this.Close();
        }

        private void btCancel_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
            this.Close();
        }
    }
}
